<template>
  <div>
    <el-button type="primary" v-permission="'admin'">管理员显示的按钮</el-button>
    <el-button type="danger" v-permission="'teacher'">老师显示的按钮</el-button>
    <el-button type="danger">都显示</el-button>
  </div>
</template>

<script>
  export default {
    name: "Permission"
  }
</script>

<style scoped>

</style>
